import request from '@/utils/request'

// 获取配置二维码
export function GoodDetail(data = {}) {
    return request({
        url: '/system/goods/' + data.goodId,
        method: "get",
    })
}

// 新增订单
export function CreateOrder(params) {
    return request({
        url: '/system/order/addOrderPay',
        method: "get",
        params
    })
}

// 新增订单
export function OrderGetCode(params) {
    return request({
        url: '/system/order/addOrderPay',
        method: "get",
        params
    })
}
// export function CreateOrder(params) {
//         return request({
//             url: '/apid/orderPay',
//             method: "get",
//             params
//         })
//     }

// 订单状态查询
export function OrderStates(data) {
    return request({
        url: '/dyLiveData/pay/change/status',
        method: "post",
        data
    })
}

// 创建订单
export function GetPayWay(params) {
    return request({
        url: '/system/order/addOrderPay',
        method: "get",
        params
    })
}

// 新增支付 汇付 订单接口
export function HfuPayResult(data = {}) {
    return request({
        url: '/hfu/hfuPayResult',
        method: "post",
        data
    })
}

// 推荐列表
export function GetRecommendPage(params = {}) {
    return request({
        url: '/client/getRecommendPage',
        method: "get",
        params
    })
}

// 新品列表
export function GetNewPhotosPage(params = {}) {
    return request({
        url: '/client/getNewPhotosPage',
        method: "get",
        params
    })
}

// 推荐详情
export function GetRecommendDetailPage(params = {}) {
    return request({
        url: '/client/getRecommendDetailPage',
        method: "get",
        params
    })
}







